package edu.uwlax.cs.oayonlinestore.client.gui.shop;

import com.google.gwt.user.client.ui.HTML;

import edu.uwlax.cs.oayonlinestore.client.gui.shared.OrderSummary;
import edu.uwlax.cs.oayonlinestore.client.utils.HSpacer;
import edu.uwlax.cs.oayonlinestore.client.utils.TitlePage;

public class PageReciept extends TitlePage {
	private OrderSummary sum;

	protected void create() {
		setTitle("Receipt");
		add(new HTML("Thanks for choosing <b>QAY Online Store!</b>"));
		add(new HSpacer());
		add(sum = new OrderSummary());
	}

	public String getID() {
		return "Reciept";
	}

	protected boolean onShow(int id) {
		sum.update(id);
		return true;
	}

}
